import com.shopping.cart.Image
import com.shopping.cart.Item

class ImageUploadFunctionalTests extends functionaltestplugin.FunctionalTestCase {


    void testSomeWebsiteFeature() {
        baseURL = 'http://localhost:8080/shwitter'
        //setup some data
        get("/fixture/createBasicItem")
        assertStatus 200

        Item item = Item.findByTitle('item1')
        get("/item/show/${item.id}")
        assertStatus 200
        assertContentContains 'home field'
        assertContentDoesNotContain 'com.shopping.cart'
    }
}
